﻿#ifndef TM_ROBOTITEM_H
#define TM_ROBOTITEM_H

#include <QGraphicsItem>
#include <QObject>
#include <common.h>

class TM_RobotItem : public QGraphicsItem
{
public:
    TM_RobotItem(qreal w,qreal h,qreal radius,QGraphicsItem *parent=0);

    void on_Set_RadirData(QString type,QStringList dataList);

public:
    qreal m_radirStartJiaoDu = 180;
    qreal m_X;
    qreal m_Y;
    qreal m_W;
    qreal m_H;
    qreal m_radius = 0;

    qreal m_x_shift;//x像素偏移量
    qreal m_y_shift;//y像素偏移量


    QStringList m_RadirData;
protected:
    QRectF boundingRect()const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
};

#endif // TM_ROBOTITEM_H
